<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>添加博客类别</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    <link rel="stylesheet" href="../../css/ht/ht-UserEdit.css">
</head>
<body style=" background-color: #EEF5F9;">
<?php require ('../Common/nav.php')?>
<!--  内容部分-->
<div class="title">
    <span><i>添加博客类别</i></span>
</div>
<div class="content" >
    <!--  左边内容starting    -->
    <div class="left">
        <h4 class="img_title" style="text-align: center">管理员头像:</h4>
        <div class="userImg">
            <!--            <img src="../../images/user/--><?php //echo $row["pic"]; ?><!--" title="--><?php //echo $row["uname"]; ?><!--"-->
            <!--                 alt="--><?php //echo $row["uname"] ?><!--" style="height: 250px;width: 300px;border-radius: 100%">-->
            <img src="../../images/user/1.jpg" alt="" style="height: 250px;width: 300px;border-radius: 100%">
        </div>
    </div>
    <!--左边内容ending-->
    <div class="right" >
        <form action="../Blog_List_manage/doAddBlog.php" method="post" enctype="multipart/form-data">
            <div class="form-group">
                <label class="col-md-12">添加博客文章</label>
                <div class="col-md-12">
                    <input type="text"   name="title" required="required" class="form-control form-control-line" placeholder="请输入标题...">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-md-12">分区</label>
                <div class="col-md-12">
                    <select class="form-control" name="tid">
                        <?php
                        require ('../Common/db.php');
                        $sql0="select * from blogtype";
                        $rs0=mysql_query($sql0);
                        while($row0=mysql_fetch_assoc($rs0))
                        {
                            ?>
                            <option value=<?php
                            echo $row0["tid"];
                            ?> <?php
                            if($row["tid"]==$row0["tid"])
                                echo "selected";
                            ?>><?php
                                echo $row0["typename"];
                                ?>
                            </option>
                            <?php
                        }
                        ?>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label  class="col-md-12">类型</label>
                <div class="col-md-12">
                    <select class="form-control" name="wid">
                    <option value="1">原创</option>
                        <option value="2">转载</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-12">添加文章前言</label>
                <div class="col-md-12">
                    <textarea name="ntro" required="required" style="width: 1100px;height: 90px" placeholder="请输入前言..."></textarea><br/>

                </div>
            </div>
                <div class="form-group">
                    <label class="col-md-12">添加封面</label>
                    <div class="col-md-12">
                        <label>
                        <input type="file" style="position: absolute;opacity: 0" name="pic" required="required"><br/>
                        <img style="margin-top: -23px" src="../../images/Font_Icon/上传图片.jpg" width="150" height="100" alt="上传图片">
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-12">视频链接</label>
                    <div class="col-md-12">
                        <input type="text" name="address" required="required" class="form-control form-control-line" placeholder="请输入链接">
                    </div>
                </div>
            <div class="form-group">
                <div class="col-sm-12">
                    <button class="btn btn-success" value="添加">添加</button>
                </div>
            </div>

        </form>
    </div>

</div>
</body>
</html>